package com.ruoyi.system.domain;

import java.util.Date;
import java.util.Map;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 排班信息对象 schedule
 *
 * @author ruoyi
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Schedule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 排班ID */
    private Long id;

    /** 警员ID */
    @ExcelProperty(value = "警员ID")
    private Long officerId;

    /** 警员姓名 */
    @ExcelProperty(value = "警员姓名")
    private String officerName;

    /** 警员类型 */
    @ExcelProperty(value = "警员类型")
    private String officerType;

    /** 所属部门 */
    @ExcelProperty(value = "所属部门")
    private String department;

    /** 排班日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "排班日期")
    private Date scheduleDate;

    /** 班次ID */
    @ExcelProperty(value = "班次ID")
    private Long shiftId;

    /** 班次名称 */
    @ExcelProperty(value = "班次名称")
    private String shiftName;

    /** 时间段 */
    @ExcelProperty(value = "时间段")
    private String timePeriod;

    /** 调整原因 */
    @ExcelProperty(value = "调整原因")
    private String reason;

    /** 是否已调整(0未调整 1已调整) */
    @ExcelProperty(value = "是否已调整(0未调整 1已调整)")
    private Integer isAdjusted;

    /** 执勤方式 */
    @ExcelProperty(value = "执勤方式")
    private String dutyType;

    /** 勤务场景 */
    @ExcelProperty(value = "勤务场景")
    private String scene;

    /** 巡逻路线 */
    @ExcelProperty(value = "巡逻路线")
    private String route;

    /** 巡逻点 */
    @ExcelProperty(value = "巡逻点")
    private String points;

    /** 装备配置 */
    @ExcelProperty(value = "装备配置")
    private String equipments;

    /** 总工时 */
    @ExcelProperty(value = "总工时")
    private String totalHours;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("officerId", getOfficerId())
            .append("officerName", getOfficerName())
            .append("officerType", getOfficerType())
            .append("department", getDepartment())
            .append("scheduleDate", getScheduleDate())
            .append("shiftId", getShiftId())
            .append("shiftName", getShiftName())
            .append("timePeriod", getTimePeriod())
            .append("reason", getReason())
            .append("isAdjusted", getIsAdjusted())
            .append("dutyType", getDutyType())
            .append("scene", getScene())
            .append("route", getRoute())
            .append("points", getPoints())
            .append("equipments", getEquipments())
            .append("totalHours", getTotalHours())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())

            .toString();
    }
}
